package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SCampTransportInfo extends Object implements IMessageBase
    {
        public var startTime:Date;
        public var endTime:Date;
        public var flag:int;
        public var expRate:int;
        public const _type:int = 16;
        public static var _regist:SCampTransportInfo = new SCampTransportInfo(true);

        public function SCampTransportInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SCampTransportInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            param1.writeDate(this.startTime);
            param1.writeDate(this.endTime);
            param1.writeInt(this.flag);
            param1.writeInt(this.expRate);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.startTime = param1.readDate();
            this.endTime = param1.readDate();
            this.flag = param1.readInt();
            this.expRate = param1.readInt();
            
        }

    }
}
